//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.jiaai.cloud.base.util;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

public class RestResult<T> {
    private boolean result;
    private int code;
    private String message;
    private String description;
    private T data;

    private RestResult() {
    }

    public static <T> RestResult<T> newInstance() {
        return new RestResult();
    }

    public String toString() {
        return "RestResult{result=" + this.result + ", code='" + this.code + '\'' + ", message='" + this.message + '\'' + ", description='" + this.description + '\'' + ", data=" + this.data + '}';
    }

    @JsonInclude(Include.NON_NULL)
    public boolean isResult() {
        return this.result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    @JsonInclude(Include.NON_NULL)
    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @JsonInclude(Include.NON_NULL)
    public T getData() {
        return this.data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @JsonInclude(Include.NON_NULL)
    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @JsonInclude(Include.NON_NULL)
    public int getCode() {
        return this.code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
